#include <stdio.h>

/**
 * if 语句
 */
int main() {
	// 猜测，大奖
	int guess, jackpot = 8;

	// 从键盘输入一个 1~10 的数字
	printf("Try to guess the jackpot number \n"
		   "between 1 and 10!\n"
		   "Please type a number.\n");
	scanf("%d", &guess);

	// 输入值小于实际值
	if (guess < jackpot) {
		printf("Try a bigger number\n");
	}

	// 输入值大于实际值
	if (guess > jackpot) {
		printf("Try a smaller number\n");
	}

	// 输入值等于实际值
	if (guess == jackpot) {
		printf("Verify your guess by typing it one more time\n");
	}

	// 再次输入
	scanf("%d", &guess);

	if (guess == jackpot) {
		printf("You hit the jackpot!\n");
	}

	if (guess != jackpot) {
		printf("You have not guessed correctly.\n"
			   "You lose.\n");
	}

	/*
	 * 关系运算符	含义
	 * <			小于
	 * <=			小于等于
	 * ==			等于
	 * >			大于
	 * >=			大于等于
	 * !=			不等于
	 */

}